package com.bank.repository;

import com.bank.entity.Transaction;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface TransactionRepository extends JpaRepository<Transaction, Long> {
    List<Transaction> findTop10ByCardIDOrderByTradeDateDesc(String cardID);
    List<Transaction> findByCardIDIn(List<String> cardIDs);
    void deleteByCardID(String cardID);
    void deleteByCardIDIn(List<String> cardIDs);
} 